//
//  ShoppingCartCell.h
//  FKGW
//
//  Created by song ce on 2017/2/22.
//  Copyright © 2017年 song ce. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "CartView.h"
#import "ShopCartModel.h"
typedef void(^swipeBlock) ();//侧滑
typedef void(^deleteBlock) ();//删除
typedef void(^jiesunBlock) ();//结算
typedef void(^selectedBlock) ();//选中
typedef void(^rowSelectedBlock) ();//选中
typedef void(^acountBlock) (NSInteger count);//加
typedef void(^mcountBlock) (NSInteger count);//减
typedef void(^tiyanBlock) (NSString *tiyan);

@interface ShoppingCartCell : UITableViewCell
@property (nonatomic, assign) BOOL isOpen;
@property (nonatomic, copy)swipeBlock mySwipeBlock;
@property (nonatomic, copy)deleteBlock myDeleteBlock;
@property (nonatomic, copy)jiesunBlock myJiesunBlock;
@property (nonatomic, copy)selectedBlock selectedBlock;
@property (nonatomic, copy)rowSelectedBlock rowSelectedBlock;
@property (nonatomic, copy)acountBlock acountBlock;
@property (nonatomic, copy)mcountBlock mcountBlock;
@property (nonatomic, copy)tiyanBlock tiyanBlock;
@property(nonatomic,copy)NSString *xOssProcess;

@property(nonatomic,assign)BOOL isShowingSelectV;
//控制器中45行有用到。对应.m中的86行
- (IBAction)selectedButton:(UIButton *)sender ;

@property (weak, nonatomic) IBOutlet UIButton *selectedBtn;

@property (weak, nonatomic) IBOutlet UIImageView *goodsImageView;//商品图片
@property (weak, nonatomic) IBOutlet UILabel *goodsNameLabel;//商品名
@property (weak, nonatomic) IBOutlet UILabel *priceLabel;//价格
@property (weak, nonatomic) IBOutlet UILabel *standardLabel;//规格信息
@property (weak, nonatomic) IBOutlet UIButton *yibanButton;//一般button
@property (weak, nonatomic) IBOutlet UIView *moveView;//侧滑视图
@property (weak, nonatomic) IBOutlet UILabel *countLabel;//显示数量label

@property (weak, nonatomic) IBOutlet UIView *selectedView;

@property(nonatomic,assign)int count;//数量
@property(nonatomic,strong)CartView *bottonV;
@property(nonatomic,strong)ShopCartModel *model;

//关闭侧滑方法
-(void)closeMenu;
-(void)hiddenTiyanBtn;
@end
